package com.eric.service;

import cn.dev33.satoken.util.SaResult;
import com.eric.domain.dto.CommonMaterialsDTO;
import com.eric.domain.vo.CommonMaterialsVO;
import com.mybatisflex.core.service.IService;
import com.eric.domain.po.CommonMaterials;

/**
 *  服务层。
 *
 * @author eric.deng
 * @since 2025-03-05
 */
public interface CommonMaterialsService extends IService<CommonMaterials> {

    SaResult saveOneService(CommonMaterialsVO commonMaterialsVO);

    SaResult updateByIdService(CommonMaterialsVO commonMaterialsVO);

    SaResult getListByPageService(Integer cur, Integer pageSize);

    SaResult getCommonMaterialsListByNameService(String name, Integer cur, Integer pageSize);

    SaResult getCommonMaterialsListByNameCountService(String name);
}
